package com.orientsec.autotest.project.system.sourcestrucdetail.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.orientsec.autotest.project.system.sourcestrucdetail.mapper.SourcestrucdetailMapper;
import com.orientsec.autotest.project.system.sourcestrucdetail.domain.Sourcestrucdetail;
import com.orientsec.autotest.project.system.sourcestrucdetail.service.ISourcestrucdetailService;
import com.orientsec.autotest.common.utils.text.Convert;

/**
 * 数据源结构配置详情 服务层实现
 * 
 * @author autotest
 * @date 2019-12-30
 */
@Service
public class SourcestrucdetailServiceImpl implements ISourcestrucdetailService 
{
	@Autowired
	private SourcestrucdetailMapper sourcestrucdetailMapper;

	/**
     * 查询数据源结构配置详情信息
     * 
     * @param id 数据源结构配置详情ID
     * @return 数据源结构配置详情信息
     */
    @Override
	public Sourcestrucdetail selectSourcestrucdetailById(Integer id)
	{
	    return sourcestrucdetailMapper.selectSourcestrucdetailById(id);
	}
	
	/**
     * 查询数据源结构配置详情列表
     * 
     * @param sourcestrucdetail 数据源结构配置详情信息
     * @return 数据源结构配置详情集合
     */
	@Override
	public List<Sourcestrucdetail> selectSourcestrucdetailList(Sourcestrucdetail sourcestrucdetail)
	{
	    return sourcestrucdetailMapper.selectSourcestrucdetailList(sourcestrucdetail);
	}
	
    /**
     * 新增数据源结构配置详情
     * 
     * @param sourcestrucdetail 数据源结构配置详情信息
     * @return 结果
     */
	@Override
	public int insertSourcestrucdetail(Sourcestrucdetail sourcestrucdetail)
	{
	    return sourcestrucdetailMapper.insertSourcestrucdetail(sourcestrucdetail);
	}
	
	/**
     * 修改数据源结构配置详情
     * 
     * @param sourcestrucdetail 数据源结构配置详情信息
     * @return 结果
     */
	@Override
	public int updateSourcestrucdetail(Sourcestrucdetail sourcestrucdetail)
	{
	    return sourcestrucdetailMapper.updateSourcestrucdetail(sourcestrucdetail);
	}

	/**
     * 删除数据源结构配置详情对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteSourcestrucdetailByIds(String ids)
	{
		return sourcestrucdetailMapper.deleteSourcestrucdetailByIds(Convert.toStrArray(ids));
	}
	
}
